<#assign state="normal">  
<#if parameters.pageState?exists>
	<#assign pageState = parameters.pageState />
</#if>
<#if pageState?exists>
	<#if pageState=="add">	    
	      <#if parameters.addState?exists && parameters.addState=="view" >
	           <#assign state="view">  
	      <#elseif parameters.addState?exists && parameters.addState=="none" >
	           <#assign state="none"> 
	      <#else>  
	           <#assign state="normal"> 
	      </#if>	      
	<#elseif pageState=="edit">
	      <#if parameters.editState?exists && parameters.editState=="view" >
	           <#assign state="view"> 
	      <#elseif parameters.editState?exists && parameters.editState=="none" >
	           <#assign state="none"> 
	      <#else>
	           <#assign state="normal">
	      </#if>
	<#elseif pageState=="view">	                 
	      <#if parameters.viewState?exists && parameters.viewState=="none" >
	         <#assign state="none"> 
	      <#else>
	         <#assign state="view"> 
	      </#if>
	</#if>
</#if>
<#if parameters.code?exists>
	<#if !helper?exists>
		<#assign helper = "com.wasp.fw.web.util.Wrapper"?new().Helper>
	</#if>
</#if>
